package com.yun.service;

import com.yun.dao.MessageMapper;
import com.yun.pojo.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageService implements MessageMapper {

    @Autowired
    MessageMapper messageMapper;
    @Override
    public List<Message> queryMessage() {
        return messageMapper.queryMessage();
    }

    @Override
    public int addMessage(Message message) {
        return messageMapper.addMessage(message);
    }

    @Override
    public int deleteMessageById(int id) {
        return messageMapper.deleteMessageById(id);
    }


}
